#include <iostream>
#include <string>
using namespace std;

class Base1 {
public:
    int A;
protected:
    int B;
private:
    int C;
};

class Son1 : public Base1 {
public:
    void func() {
        A = 10;
        B = 10;
//        C = 10;
    }
};

class Son2 : protected Base1 {
public:
    void func() {
        A = 10;
        B = 10;
//        C = 10;
    }
};

class Son3 : private Base1 {
public:
    void func() {
        A = 10;
        B = 10;
//        C = 10;
    }
};

class GreadSon3 : public Son3 {

};

int main() {

    Son1 son1;
    Son2 son2;
    Son3 son3;

    return 0;
}